package com.yy.dto;

import com.yy.domain.Prod;
import com.yy.domain.Sku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述: []
 * 作者: yy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品新增对象")
public class ProdAddDTO extends Prod {

    @ApiModelProperty("标签分组ids")
    private List<Long> tagList;

    @ApiModelProperty("sku集合")
    private List<Sku> skuList;

    @ApiModelProperty("配送方式")
    private DeliveryModeVo deliveryModeVo;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ApiModel("配送方式")
    public static class DeliveryModeVo {

        @ApiModelProperty("商家配送")
        private Boolean hasShopDelivery;

        @ApiModelProperty("用户自提")
        private Boolean hasUserPickUp;

    }
}

